<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function f1() {
        console.log(1)
    }

    f1();

    function f2(x, y) {
        return x + y;
    }

    let result = f2(2, 3);
    console.log(result);

    function f3(x, y) {
        console.log(x * y)
    }

    f3(3, 3);

    function f4() {
        return "这是返回值";
    }

    let r = f4();
    console.log(r);

    let f5 = function (name, age) {
        console.log(name + ":" + age);
    }
    f5("卢布", 25);
    let f6 = new Function("name", "age", "console.log(name+':'+age)");
    f6("刁馋", 55);
</script>
</body>
</html>